package com.atguigu.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 2 * @Author: madonghui
 * 3 * @Date: 2020/10/29 14:33
 * 4
 */
/**
 *
 * @Description: ribbon使用负载均衡不允许Componentscan扫描到
 *
 * @auther: madonghui
 * @date: 22:01 2020/10/29
 * @param:
 * @return:
 *
 */
@Configuration
public class MySelfRule {
    @Bean
    public IRule myRule(){
        return new RandomRule();
    }
}
